| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import path from 'path' |
||
| 12 | export function getFiles() { |
||
| 13 | var arr = [] |
||
| 14 | var res = [] |
||
| 15 | arr = cmsData.file.read( |
||
| 16 | path.join(config.root, config.reference.url), |
||
| 17 | path.join(config.root, config.reference.url), |
||
| 18 | 'files', |
||
| 19 | true, |
||
| 20 | /(.json*?)/ |
||
| 21 | ) |
||
| 22 | |||
| 23 | arr.forEach(function (el) { |
||
| 24 | res.push({ |
||
| 25 | name: el.name, |
||
| 26 | data: cmsData.file.get(el.path) |
||
| 27 | }) |
||
| 28 | }) |
||
| 29 | |||
| 30 | return res |
||
| 31 | } |
||
| 32 |